home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-09-29 | 1.2 KB | 39 lines |
- '*******************************************************
- '* *
- '* AMOS Professional Procedure Library *
- '* *
- '* Procedure: Screen Wipe 1 *
- '* *
- '* Author: N.P. Hayman-Joyce *
- '* *
- '*******************************************************
-
- For A=0 To 60
- Print "AMOS Professional ";
- Next A
- Wait 50
- _XWIPE1
-
-
- Procedure _XWIPE1
- ' XWipe1 - Single Xwipe by N.P.Hayman-Joyce (OWL)
- ' Use this wipe anywhere in your program by typing " proc _XWIPE1 ".
-
- ' This gives the corners of the screen so that the line can be drawn.
- X1=320 : Y1=0 : X2=0 : Y2=200
- ' The first loop, which rotates the lines to opposite positions.
- Do
- Ink 0
- Draw X2,Y2 To X1,Y1
- ' This quits the loop if the positions have swapped.
- Exit If X1=0
- X2=X2+1 : X1=X1-1
- Loop
- ' The second loop, which finishes the job.
- Do
- Ink 0
- Draw X1,Y1 To X2,Y2
- Exit If Y2=0
- Y2=Y2-1 : Y1=Y1+1
- Loop
- End Proc